package com.xuecheng.teaching.api;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.WorkVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Sober_wxy
 * @date 2022/8/1 0:31
 */
@FeignClient("xc-teaching-service")
public interface TeachingClient {
        @GetMapping("/{workId}")
        ResponseResult<WorkVo> findById(@PathVariable("workId") Long workId);
}
